package org.demo;

import java.awt.event.ActionEvent;

import org.demo.controller.IReadBackController;
import org.demo.controller.impl.ReadBackControllerImpl;
import org.demo.ui.MainFrame;
import org.demo.utils.OnClickListener;

public class App {

	public static void main(String[] args) {
		MainFrame frame = new MainFrame();
		final IReadBackController controller = new ReadBackControllerImpl(frame);
		frame.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(ActionEvent event) {
				controller.execute();
			}
		});
	}
}
